local clear = reload("table.opt.clear")
local other = require("other")
return function (narr, nrec)
    narr = narr or 0
    nrec = nrec or 0
    local list = other.tcreate(1024, 0)
    local function newt()
        local t = table.remove(list)
        return t or other.tcreate(narr, nrec)
    end

    ---回收
    local function delt(t)
        table.insert(list, clear(t))
    end

    return newt, delt
end
